package cn.tedu.csms.attendance.controller;

import cn.tedu.csms.attendance.pojo.dto.AttendanceQuery;
import cn.tedu.csms.attendance.pojo.entity.Attendance;
import cn.tedu.csms.attendance.pojo.vo.AttendanceVO;
import cn.tedu.csms.attendance.service.AttendanceService;
import cn.tedu.csms.base.response.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Slf4j
@RequestMapping("/v1/attendance")
public class AttendanceController {
    @Autowired
    AttendanceService attendanceService;
    @GetMapping("select")
    public JsonResult select(AttendanceQuery attendanceQuery) {
        log.debug("查询考勤信息:{}", attendanceQuery);
        List<AttendanceVO> list= attendanceService.select(attendanceQuery);
        return JsonResult.ok();
    }
}
